<?
include_once "global.php";

$_link = str_replace(".php","",basename(__FILE__));
$_fe = $db->query1("select * from node where folderid = 0 and folder = 1 and link = ".$db->sqlstring($_link));

permission_require($_fe,4);

array_unshift($incdirs,"$ssincdir/site");
array_unshift($incdirs,"$incdir/site");

$params["folder"] = $_fe["id"];
$module = "main";

include $topdir."/_redir.php";
?>